package com.cloud.gateway.rsp;

/**
 * @author kangwen
 */
public enum RspCode implements Code {

	/**
	 * 降级
	 */
	FALLBACK(500, "server busy, fallback");

	private int code;
	private String msg;


	RspCode(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	@Override
	public int code() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	@Override
	public String msg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

}
